package cn.com.chengmandian.bike.mapper;

import cn.com.chengmandian.bike.dto.FaultBillInfoDto;
import cn.com.chengmandian.bike.model.EbFaultBillInfo;
import cn.com.chengmandian.bike.model.vo.FaultBillInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 电单车运营-订单问题工单 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-05-29
 */
@Mapper
public interface EbFaultBillInfoMapper extends BaseMapper<EbFaultBillInfo> {

    IPage<FaultBillInfoVo> getPage(Page page, @Param("dto") FaultBillInfoDto dto);

    FaultBillInfoVo lastInfo(@Param("orderId") Integer orderId);

    FaultBillInfoVo detail(@Param("id") Integer id);

    List<FaultBillInfoVo> getOrderList(@Param("orderId") Integer orderId);
}
